project(media_player)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
    add_definitions(-DQT_QML_DEBUG)
endif()

set(sources "src/main.cpp"
    "src/backend.h" "src/backend.cpp")

set(qrc "qml/qml.qrc")

add_executable(${PROJECT_NAME} ${sources} ${qrc})

target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Quick media_provider)

